package gof23.structure.decorator;

/**
 * 装饰角色（装饰器的抽象）
 * 
 * 引用被装饰对象，实现被装饰对象
 * @author zhiyizha
 *
 */
public abstract class Decorator implements Component{

	private Component component;
	
	protected Decorator(Component component) {
		this.component = component;
	}
	
	@Override
	public void doSomething() {
		component.doSomething();
	}
}
